/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.research_award.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 科研获奖Entity
 * @author hang
 * @version 2017-01-15
 */
public class TbResearchAward extends DataEntity<TbResearchAward> {
	
	private static final long serialVersionUID = 1L;
	private String awardKind;		// 奖励类别
	private String awardGrade;		// 奖励等级
	private String itemName;		// 获奖项目名称
	private String awardPerson;		// 获奖人
	private String certificateNum;		// 证书编号
	private String awardYear;		// 获奖年度
	private String remark;		// 备注
	private String material;		// 证明材料
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	
	public TbResearchAward() {
		super();
	}

	public TbResearchAward(String id){
		super(id);
	}

	@Length(min=0, max=100, message="奖励类别长度必须介于 0 和 100 之间")
	public String getAwardKind() {
		return awardKind;
	}

	public void setAwardKind(String awardKind) {
		this.awardKind = awardKind;
	}
	
	@Length(min=0, max=64, message="奖励等级长度必须介于 0 和 64 之间")
	public String getAwardGrade() {
		return awardGrade;
	}

	public void setAwardGrade(String awardGrade) {
		this.awardGrade = awardGrade;
	}
	
	@Length(min=0, max=64, message="获奖项目名称长度必须介于 0 和 64 之间")
	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	
	@Length(min=0, max=64, message="获奖人长度必须介于 0 和 64 之间")
	public String getAwardPerson() {
		return awardPerson;
	}

	public void setAwardPerson(String awardPerson) {
		this.awardPerson = awardPerson;
	}
	
	@Length(min=0, max=64, message="证书编号长度必须介于 0 和 64 之间")
	public String getCertificateNum() {
		return certificateNum;
	}

	public void setCertificateNum(String certificateNum) {
		this.certificateNum = certificateNum;
	}
	
	@Length(min=0, max=64, message="获奖年度长度必须介于 0 和 64 之间")
	public String getAwardYear() {
		return awardYear;
	}

	public void setAwardYear(String awardYear) {
		this.awardYear = awardYear;
	}
	
	@Length(min=0, max=200, message="备注长度必须介于 0 和 200 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=200, message="证明材料长度必须介于 0 和 200 之间")
	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}